/**
 * @param {Object} params  
 * 消息管理接口api
 */
import request from './request.js'
// 获取告警统计信息
export function getMsgStatistical(type) {
	return request({
		url: 'hj/enterprise/events',
		method: 'GET'
	})
}

// 获取转向人员信息
export function getPersonnel(type) {
	return request({
		url: `hj/enterprise/events/getUserTels/${type}`,
		method: 'GET'
	})
}

// 获取告警列表表格数据
export function getWarningList (type, params) {
  return request({
    url: `hj/enterprise/events/${type}/page`,
    method: 'GET',
    params
  })
}

// 解决告警信息
export function setSolveAlarm(params) {
	return request({
		url: 'hj/enterprise/events/processEvent',
		method: 'POST',
		params
	})
}
